package com.minimalist.common.entity.lindi.enums;



/**
 * 林地指标平台_合同模板枚举
 *
 * @author 11987
 * @since 2025-05-31
 */
public class LindiContractTemplateEnum{

    /**
     * 合同模板类型枚举
     */
    public enum ContractTemplateTypeEnum{
        PURCHASE(1, "购买合同"),
        SALE(2, "出售合同"),
        TRANSFER(3, "转让合同"),
        LEASE(4, "租赁合同");

        private final Integer code;
        private final String desc;

        ContractTemplateTypeEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }

    /**
     * 状态枚举
     */
    public enum StatusEnum{
        DISABLED(0, "禁用"),
        ENABLED(1, "启用");

        private final Integer code;
        private final String desc;

        StatusEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }

    /**
     * 错误信息枚举
     */
    public enum ErrorMsgEnum{
        CONTRACT_TEMPLATE_NOT_FOUND("合同模板不存在"),
        ADD_CONTRACT_TEMPLATE_ERROR("添加合同模板失败"),
        UPDATE_CONTRACT_TEMPLATE_ERROR("更新合同模板失败"),
        DELETE_CONTRACT_TEMPLATE_ERROR("删除合同模板失败"),
        CONTRACT_TEMPLATE_NAME_EXISTS("合同模板名称已存在"),
        DELETE_CONTRACT_TEMPLATE_FILE_ERROR("删除合同模板文件失败"),
        CONTRACT_TEMPLATE_DISABLED("合同模板已禁用"),
        CONTRACT_TEMPLATE_IN_USE("合同模板正在使用中，无法删除");

        private final String desc;

        ErrorMsgEnum(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }
}
